Restore iptables at once using iptables-restore instead of calling iptables numerous times#1400
Restore iptables at once using iptables-restore instead of calling iptables numerous times#1400borisroman wants to merge 7 commits intoapache:4.7from
Conversation
|
The integration tests succeed and this results in a massive speed improvement for ACL rules. We've tested it with 500 and 1000 and it's like 50-60 times faster. Result: And: Result: Now runs in our employee cloud, still testing and verifying beyond the integration tests. We should also investigate the Jenkins error. So far so good! |
| @@ -0,0 +1,227 @@ | |||
| #!/usr/bin/python | |||
There was a problem hiding this comment.
this file needs a license header
|
skimmed the code, looks good. I have some questions that might be answerred by a generic description of how this will improve performance. Could you add that @borisroman ? |
…tables numerous times
0f63846 to
eb9706b
Compare
ACS CI BVT RunSumarry: The follwing tests have known issues Link to logs Folder (search by build_no): https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0 Failed tests:
Skipped tests: Passed test suits: |
Restore iptables at once using iptables-restore instead of calling iptables numerous timesThis makes handling the firewall rules about 50-60 times faster because it is generated in memory and then loaded once. It's work by @borisroman see PR #1400. Reopened it here because I think this is a great improvement. * pr/1482: Resolve conflict as forceencap is already in master Split the cidr lists so we won't hit the iptables-resture limits Check the existence of 'forceencap' parameter before use Do not load previous firewall rules as we replace everyhing anyway Wait for dnsmasq to finish restart Remove duplicate spaces, and thus duplicate rules. Restore iptables at once using iptables-restore instead of calling iptables numerous times Add iptables copnversion script. Signed-off-by: Will Stevens <williamstevens@gmail.com>
No description provided.